package com.arrcen.medicen.core.match.model.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
public class ResultObj<T> implements Serializable {

    @JsonProperty("status")
    @ApiModelProperty(value = "成功状态",example = "1")
    public int status;

    @JsonProperty("data")
    @ApiModelProperty(value = "返回数据")
    public T data;

    public ResultObj() {
        this.setStatus(1);
    }

    public ResultObj(int _status) {
        this.setStatus(_status);
    }

    public ResultObj(int _status, T _data) {
        this.setStatus(_status);
        this.setData(_data);
    }



}
